package lg.minecraft.plugin.testeconomy.storage;

import lg.minecraft.plugin.testeconomy.TestEconomy;
import org.bukkit.Bukkit;

/**
 * @author white
 * @version 1.0
 */
public abstract class FileStorage extends BaseStorage {

    public abstract void save();

    public abstract void load();

    public void asyncSave() {
        Bukkit.getScheduler().runTaskAsynchronously(TestEconomy.getInstance(), this::save);
    }

}
